package com.nanoso.service.jms.util;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;
import javax.jms.TextMessage;

public class JmsFactory {

	public static Message makeDealUrlMessage(Session session, Object obj)
			throws JMSException {

		TextMessage message = session.createTextMessage();
		message.setLongProperty("id", (Long)obj);
		return message;
	}
}
